package service;

import dao.ArticleDAO;
import data.Article;
import utils.DAOFactory;

public class ArticleService
{
	private static final ArticleDAO dao_article = (ArticleDAO) DAOFactory.getDAOInstance(DAOFactory.DAOClassName.ARTICLE);
	
	
	public Article getArticle(int id)
	{
		return ArticleService.dao_article.selectByID(id);
	}
	
	public int getArticleCount()
	{
		return ArticleService.dao_article.count();
	}
}







